<div class="navbar-dark jh-navbar">
    <div class="navbar-header" *ngIf="!isMobile">
        <div class="navbar-brand logo">
            <span class="logo-img"></span>
            <span class="navbar-title" style="color: white">系统管理</span>
        </div>
    </div>
    <div class="navbar-collapse collapse" [ngbCollapse]="false">
        <ul class="navbar-nav">
            <li class="nav-item" *ngIf="hasAuthority('ROLE_ADMIN')">
                <a class="nav-link" routerLink="user-management" routerLinkActive="active">
                    <i class="fa fa-fw fa-user" aria-hidden="true"></i>
                    <span>&nbsp;用户管理</span>
                </a>
            </li>
            <li class="nav-item" *ngIf="hasAuthority('ROLE_ADMIN')">
                <a class="nav-link" routerLink="role-management" routerLinkActive="active">
                    <i class="fa fa-fw fa-leaf" aria-hidden="true"></i>
                    <span>&nbsp;角色管理</span>
                </a>
            </li>
            <li class="nav-item" *ngIf="hasAuthority('ROLE_APPLICATION')">
                <a class="nav-link" routerLink="application" routerLinkActive="active">
                    <i class="fa fa-fw fa-cubes" aria-hidden="true"></i>
                    <span>&nbsp;应用管理</span>
                </a>
            </li>
            <li class="nav-item" *ngIf="hasAuthority('ROLE_CONTENT')">
                <a class="nav-link" routerLink="bulletin" routerLinkActive="active">
                    <i class="fa fa-fw fa-book" aria-hidden="true"></i>
                    <span>&nbsp;文稿管理</span>
                </a>
            </li>
            <li class="nav-item" *ngIf="hasAuthority('ROLE_CONTENT')">
                <a class="nav-link" routerLink="attachment" routerLinkActive="active">
                    <i class="fa fa-fw fa-paperclip" aria-hidden="true"></i>
                    <span>&nbsp;附件管理</span>
                </a>
            </li>
            <li class="nav-item" *ngIf="hasAuthority('ROLE_ADMIN')">
                <a class="nav-link" routerLinkActive="active" href="/ppersonal/#/taskadmin">
                    <i class="fa fa-fw fa-tasks" aria-hidden="true"></i>
                    <span>&nbsp;任务管理</span>
                </a>
            </li>
            <li class="nav-item" *ngIf="hasAuthority('ROLE_ADMIN')">
                <a class="nav-link" routerLinkActive="active" href="/ppersonal/#/creditadmin">
                    <i class="fa fa-fw fa-credit-card" aria-hidden="true"></i>
                    <span>&nbsp;积分管理</span>
                </a>
            </li>
        </ul>
    </div>
</div>
